package org.yystory.utility;

import org.yystory.dataobject.ErrorObject;

import com.alibaba.fastjson.JSON;

public final class ErrorParser {
	public static final String parseError(String source, String description) {
		ErrorObject errorObject = new ErrorObject();
		errorObject.setSource(source);
		errorObject.setDescription(description);
		String error = JSON.toJSONString(errorObject);
		return error;
	}
}
